package com.stadium.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 规则表
 *
 * @author zq
 * @email 513973172@qq.com
 * @date 2020-01-31 15:13:40
 */
@Data
@ApiModel(value = "规则表Vo")
public class BasicsRuleVo {
    private static final long serialVersionUID = 1L;
    //id
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;
    //规则名称
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "赛事分类id")
    private String categoryId;
    @Length(min = 0, max = 100)
    @ApiModelProperty(value = "规则名称")
    private String name;
    //是否可用（0：可用 1：不可用）
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "是否可用（0：可用 1：不可用）")
    private String isAvailable;
    //状态码（0：正常，1：异常）
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "状态码（0：正常，1：异常）")
    private String statusCode;
    //删除码（0：正常 1：删除）
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "删除码（0：正常 1：删除）")
    private String deleteCode;
    //备注
    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;
    //创建时间
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    //创建人
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "创建人")
    private String createUser;
    //更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    //更新人
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "更新人")
    private String updateUser;
}
